/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Region implements Serializable {
	public Region() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_REGION_EVALUACION) {
			return ORM_evaluacion;
		}
		else if (key == orm.ORMConstants.KEY_REGION_COMUNA) {
			return ORM_comuna;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private String re_numeroregion;
	
	private String re_nombreRegion;
	
	private java.util.Set ORM_evaluacion = new java.util.HashSet();
	
	private java.util.Set ORM_comuna = new java.util.HashSet();
	
	public void setRe_numeroregion(String value) {
		this.re_numeroregion = value;
	}
	
	public String getRe_numeroregion() {
		return re_numeroregion;
	}
	
	public String getORMID() {
		return getRe_numeroregion();
	}
	
	/**
	 * nombre de la region
	 */
	public void setRe_nombreRegion(String value) {
		this.re_nombreRegion = value;
	}
	
	/**
	 * nombre de la region
	 */
	public String getRe_nombreRegion() {
		return re_nombreRegion;
	}
	
	private void setORM_Evaluacion(java.util.Set value) {
		this.ORM_evaluacion = value;
	}
	
	private java.util.Set getORM_Evaluacion() {
		return ORM_evaluacion;
	}
	
	public final orm.EvaluacionSetCollection evaluacion = new orm.EvaluacionSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_REGION_EVALUACION, orm.ORMConstants.KEY_EVALUACION_REGIONRE_NUMEROREGION, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	private void setORM_Comuna(java.util.Set value) {
		this.ORM_comuna = value;
	}
	
	private java.util.Set getORM_Comuna() {
		return ORM_comuna;
	}
	
	public final orm.ComunaSetCollection comuna = new orm.ComunaSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_REGION_COMUNA, orm.ORMConstants.KEY_COMUNA_REGIONRE_NUMEROREGION, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getRe_numeroregion());
	}
	
}
